#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif


void Test1()
{
    // 通过定义临时对象，来完成方法的调用
    vector<vector<int>> vv= {{0,0,0},{0,1,0},{0,0,0}};
    int ret = Solution().uniquePathsWithObstacles(vv);
    if(ret == 2){
        std::cout << "通过 [用例1] : [[0,0,0],[0,1,0],[0,0,0]] " << std::endl;

    }
    else{
        std::cout << "失败 [用例1] : [[0,0,0],[0,1,0],[0,0,0]] "  << std::endl;
    }
}

void Test2()
{
    // 通过定义临时对象，来完成方法的调用
    vector<vector<int>> vv= {{0,1},{0,0}};
    int ret = Solution().uniquePathsWithObstacles(vv);
    if(ret==1){
        std::cout << "通过 [用例2] : [[0,1],[0,0]] " << std::endl;
    }
    else{
        std::cout << "失败 [用例2] : [[0,1],[0,0]] "  << std::endl;
    }
}

int main()
{
    Test1();
    Test2();

    return 0;
}